Optimal. Leaf size=193 \[ -\frac {4 a^3 (A+B) \cos (e+f x) \log (1-\sin (e+f x))}{f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}-\frac {2 a^2 (A+B) \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{f \sqrt {c-c \sin (e+f x)}}-\frac {a (A+B) \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}-\frac {B \cos (e+f x) (a \sin (e+f x)+a)^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.46, antiderivative size = 193, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2973, 2740, 2737, 2667, 31} \[ -\frac {2 a^2 (A+B) \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{f \sqrt {c-c \sin (e+f x)}}-\frac {4 a^3 (A+B) \cos (e+f x) \log (1-\sin (e+f x))}{f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}-\frac {a (A+B) \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}-\frac {B \cos (e+f x) (a \sin (e+f x)+a)^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 2667
Rule 2737
Rule 2740
Rule 2973
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^{5/2} (A+B \sin (e+f x))}{\sqrt {c-c \sin (e+f x)}} \, dx &=-\frac {B \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}}+(A+B) \int \frac {(a+a \sin (e+f x))^{5/2}}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {a (A+B) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}-\frac {B \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}}+(2 a (A+B)) \int \frac {(a+a \sin (e+f x))^{3/2}}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {2 a^2 (A+B) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{f \sqrt {c-c \sin (e+f x)}}-\frac {a (A+B) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}-\frac {B \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}}+\left (4 a^2 (A+B)\right ) \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {2 a^2 (A+B) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{f \sqrt {c-c \sin (e+f x)}}-\frac {a (A+B) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}-\frac {B \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}}+\frac {\left (4 a^3 (A+B) c \cos (e+f x)\right ) \int \frac {\cos (e+f x)}{c-c \sin (e+f x)} \, dx}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=-\frac {2 a^2 (A+B) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{f \sqrt {c-c \sin (e+f x)}}-\frac {a (A+B) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}-\frac {B \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}}-\frac {\left (4 a^3 (A+B) \cos (e+f x)\right ) \operatorname {Subst}\left (\int \frac {1}{c+x} \, dx,x,-c \sin (e+f x)\right )}{f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=-\frac {4 a^3 (A+B) \cos (e+f x) \log (1-\sin (e+f x))}{f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}-\frac {2 a^2 (A+B) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{f \sqrt {c-c \sin (e+f x)}}-\frac {a (A+B) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}-\frac {B \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{3 f \sqrt {c-c \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.50, size = 177, normalized size = 0.92 \[ -\frac {(a (\sin (e+f x)+1))^{5/2} \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left ((36 A+51 B) \sin (e+f x)-3 (A+3 B) \cos (2 (e+f x))+96 A \log \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )-B \sin (3 (e+f x))+96 B \log \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )\right )}{12 f \sqrt {c-c \sin (e+f x)} \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 4.60, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left ({\left (A + 2 \, B\right )} a^{2} \cos \left (f x + e\right )^{2} - 2 \, {\left (A + B\right )} a^{2} + {\left (B a^{2} \cos \left (f x + e\right )^{2} - 2 \, {\left (A + B\right )} a^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{c \sin \left (f x + e\right ) - c}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.72, size = 590, normalized size = 3.06 \[ \frac {\left (15 A \sin \left (f x +e \right )-18 A \sin \left (f x +e \right ) \cos \left (f x +e \right )+7 B \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-48 A \sin \left (f x +e \right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-15 A -17 B +24 A \sin \left (f x +e \right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )-48 A \cos \left (f x +e \right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+24 A \cos \left (f x +e \right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )-26 B \sin \left (f x +e \right ) \cos \left (f x +e \right )-48 B \sin \left (f x +e \right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+24 B \sin \left (f x +e \right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )-48 B \cos \left (f x +e \right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+24 B \cos \left (f x +e \right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )+19 B \left (\cos ^{2}\left (f x +e \right )\right )+2 B \left (\cos ^{3}\left (f x +e \right )\right ) \sin \left (f x +e \right )+17 B \sin \left (f x +e \right )+3 A \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-3 A \cos \left (f x +e \right )-2 B \left (\cos ^{4}\left (f x +e \right )\right )-9 B \cos \left (f x +e \right )+3 A \left (\cos ^{3}\left (f x +e \right )\right )+9 B \left (\cos ^{3}\left (f x +e \right )\right )+48 A \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-24 A \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )+48 B \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-24 B \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )+15 A \left (\cos ^{2}\left (f x +e \right )\right )\right ) \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {5}{2}}}{6 f \left (\cos ^{3}\left (f x +e \right )-\left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-3 \left (\cos ^{2}\left (f x +e \right )\right )-2 \sin \left (f x +e \right ) \cos \left (f x +e \right )-2 \cos \left (f x +e \right )+4 \sin \left (f x +e \right )+4\right ) \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sin \left (f x + e\right ) + A\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {5}{2}}}{\sqrt {-c \sin \left (f x + e\right ) + c}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\left (A+B\,\sin \left (e+f\,x\right )\right )\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{5/2}}{\sqrt {c-c\,\sin \left (e+f\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________